<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title> New Document </title>
	<meta NAME="Generator" CONTENT="EditPlus">
	<meta NAME="Author" CONTENT="">
	<meta NAME="Keywords" CONTENT="">
	<meta NAME="Description" CONTENT="">
	<script type="text/javascript" src="swfobject.js"></script>
</head>

 <body>
  <div id="$_swf"></div>
  <input type="button" value="调用FLASH" onclick="callFlash();" />
  <script type="text/javascript">
	window.onload=function(){	
		var swf = new SWFObject("sayHelloWorld.swf", "mySwf", "217", "160", "7", "#ffffff");
		swf.addParam("wmode", "transparent"); 
		swf.write("$_swf");
	}

	function sayHelloWorld() {
		alert("哇！！！被调用了，好神奇啊。");
	}

	function callFlash() {
		document["mySwf"].callTest();
	}
  </script>
 </body>
</html>
